<?php

use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('welcome');
});

Route::get('/phpinfo', function () {
    phpinfo();
});

Route::get('/csrf-token', function() {
    return response()->json(['token' => csrf_token()]);
});

Route::get('deal_city', [\App\Http\Controllers\Api\Utils\DealDataController::class, 'dealCity']);
Route::get('mock/recruit', [\App\Http\Controllers\Api\Utils\DealDataController::class, 'mockRecruit']);
Route::get('mock/recruit1', [\App\Http\Controllers\Api\Utils\DealDataController::class, 'mockRecruit1']);
Route::get('jwd', [\App\Http\Controllers\Api\Utils\DealDataController::class, 'getLatitudeLongitude']);
Route::get('update', [\App\Http\Controllers\Api\Utils\DealDataController::class, 'updateRecruit']);
Route::get('area', [\App\Http\Controllers\Api\Utils\DealDataController::class, 'planningArea']);
Route::get('mock/recruit/title', [\App\Http\Controllers\Api\Utils\DealDataController::class, 'mockRecruitTitle']);
Route::get('route', [\App\Http\Controllers\Api\Utils\DealDataController::class, 'getRoute']);

// 模拟测试-根据用户当前经纬度和地图缩放的比例渲染不同维度的数据
Route::get('map/restaurant/bubbles', [\App\Http\Controllers\Api\Utils\LonLatController::class, 'mapRestaurantBubbles']);
Route::get('map/restaurant/bubble_list', [\App\Http\Controllers\Api\Utils\LonLatController::class, 'restaurantBubbleList']);
